namespace CQIE.TES.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Student")]
    public partial class Student
    {
        public int ID { get; set; }

        [Required]
        [StringLength(20)]
        public string StudentNumber { get; set; }

        [StringLength(20)]
        public string PassWord { get; set; }

        [StringLength(20)]
        public string Name { get; set; }

        public bool? IsFreeze { get; set; }

        public int? ClassID { get; set; }

        public int? Sex { get; set; }

        public virtual Class_ Class_ { get; set; }

        [NotMapped]
        public string ClassCode { get; set; }
    }
}
